package com.gitee.wsl.func


fun interface TriFunction<T, U, X, R> {
    fun apply(t: T, u: U, x: X): R

    fun <V> andThen(after: Function<in R, out V>): TriFunction<T, U, X, V> {
        return TriFunction { t: T, u: U, x: X -> after.apply(apply(t, u, x)) }
    }

}
